﻿using System;
using Tfs.OnTheRoad.Pages;
namespace Tfs_OnTheRoad
{
    /// <summary>
    /// Appolication About Page
    /// </summary>
    public partial class AboutPage : BasePage
    {
        public AboutPage()
        {
            InitializeComponent();
            //Not possible on WP7 sue to security reasons
            //http://social.msdn.microsoft.com/Forums/en/windowsphone7series/thread/ca0f9aa9-70cc-4b75-97d2-a4a0f50dd969
            //Version.Text = this.GetType().Assembly.GetName().Version.ToString(3);
            //Alternative way
            Version.Text = this.GetType().Assembly.FullName.Split(',')[1].ToString().Replace("Version=",string.Empty);  

        }
    }
}
